<div class="studentgroups form">
<?php echo $form->create('Studentgroup');?>
	<fieldset>
 		<legend><?php __('Добавить группу');?></legend>
        <div class="formblock">
			<div class="forminnerblockleft"><b>Факультет</b></div>
			<div class="forminnerblock">     
				<?php 
				echo $form->input('facultet_id', array('options' => $facultets, 'empty' => 'Выберите факультет', 'label' => '', 'id' => 'facultets'), null);
				?>            
         	</div>
        </div>
        <div class="formblock">
			<div class="forminnerblockleft"><b>Специальность</b></div>
			<div class="forminnerblock">     
				<?php 
				echo $form->select('profession_id', array(), null, array('id' => 'professions'));
				$profession_options = array('url' => 'update_profession','update' => 'professions');
				echo $ajax->observeField('facultets', $profession_options);					
				?>          
         	</div>
        </div>
        <div class="formblock">
			<div class="forminnerblockleft"><b>Курс</b></div>
			<div class="forminnerblock">     
				<?php 
				echo $form->select('course_id', array(), null, array('id' => 'courses'));
				$course_options = array('url' => 'update_course','update' => 'courses');
				echo $ajax->observeField('professions', $course_options);					
				?>          
         	</div>
        </div>
        <div class="formblock">
			<div class="forminnerblockleft"><b>Форма обуч.</b></div>
			<div class="forminnerblock">     
				<?php 
				echo $form->input('learningform_id', array('options' => $learningforms, 'empty' => 'Выберите форму обуч', 'label' => '', 'id' => 'learningforms'), null);
				?>            
         	</div>
        </div>     
        <div class="formblock">
			<div class="forminnerblockleft"><b>Тип обуч.</b></div>
			<div class="forminnerblock">     
				<?php 
				echo $form->input('learningtype_id', array('options' => $learningtypes, 'empty' => 'Выберите тип обуч', 'label' => '', 'id' => 'learningtypes'), null);
				
				?>        
         	</div>
        </div>
        <div class="formblock">
			<div class="forminnerblockleft"><b>Номер (внутренний)</b></div>
			<div class="forminnerblock">     
			<?php 
			echo $form->input('number', array('label' => ''));
			?>           
         	</div>
        </div> 
        <div class="formblock">
			<div class="forminnerblockleft"><b>Название группы</b></div>
			<div class="forminnerblock">     
			<?php 
			echo $form->input('name', array('label' => ''));
			?>	           
         	</div>
        </div>        
  
    
	</fieldset>
<?php echo $form->end('Submit');?>
</div>
<div class="actions">
	<ul>
		<li><?php echo $html->link(__('List Studentgroups', true), array('action' => 'index'));?></li>
		<li><?php echo $html->link(__('List Courses', true), array('controller' => 'courses', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('New Course', true), array('controller' => 'courses', 'action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('List Learningforms', true), array('controller' => 'learningforms', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('New Learningform', true), array('controller' => 'learningforms', 'action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('List Learningtypes', true), array('controller' => 'learningtypes', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('New Learningtype', true), array('controller' => 'learningtypes', 'action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('List Students', true), array('controller' => 'students', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('New Student', true), array('controller' => 'students', 'action' => 'add')); ?> </li>
	</ul>
</div>
